Tweak memory limits for out_kafka example - #18
Conversation
|
I figured out one problem I was having with the tight memory and cpu limits: From @leahnp on May 17, 2017 0:6
Copied from original issue: samsung-cnct/kraken-logging-fluent-bit-daemonset#5 Moved to samsung-cnct/chart-fluent-bit#9 |
in particular at pod start on nodes with unprocessed logs
|
@edsiper I think @StevenACoffman's observation above is interesting input to the lack of "check" in out_kafka. Spikes in memory use at pod start are impractical. Can log processing be halted when kafka buffers hit a size limit? Would it be possible to add output buffer size to prometheus metrics? In addition I've found a tentative explanation for log messages Receive failed: Disconnected. See Yolean/kubernetes-kafka#132 (comment). Can be ignored, as not an issue with fluent-bit. But, like with request.required.acks, I would like to be able to set librdkafka properties. |
|
I had a case now with 0.9 and current memory limit (60Mi) where I one pod went crashlooping. Raising to 100Mi didn't help but to 200Mi did. The crashes happened too fast after start for me to get any meaningful metrics out of it. Now that everything is up and running again Prometheus has no memory use value above 50Mi. At Unfortunately I think the log file got truncated before I managed to pull it out from the node, because I see no entries in it from the time of the crash. I've restored the 60 Mi limit. Let's see if this happens again. It's the only unexpected pod restart I've had since this PR was merged. |
WIP based on discussion in #16